﻿using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Dapper_Core.Table
{
    public class Sys_EmailTemplate
    {
        [Key]
        [Required]
        /// <summary>
        /// 主键必须加[Key]特性，若想对名为Id的列赋值必须加[Required]特性
        /// </summary>
        public string Id { get; set; }
        public string TemplateCode { get; set; }
        public string TemplateName { get; set; }
        public string TemplateTitle { get; set; }
        public string TemplateContent { get; set; }
        public int IsDeleted { get; set; }
        public string Creator { get; set; }
        public DateTime CreateDate { get; set; }
        public string Modifier { get; set; }
        public DateTime? ModifyDate { get; set; }
        public string Deleter { get; set; }
        public DateTime? DeleteDate { get; set; }
        public string Remarks { get; set; }
        [Editable(false)]
        public DateTime? CreateDateStart { get; set; }
        [Editable(false)]
        public DateTime? CreateDateEnd { get; set; }
    }
}
